package crmdna.client.program;

import java.util.ArrayList;
import java.util.List;

import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Id;
import com.googlecode.objectify.annotation.Index;

import crmdna.client.program.CheckIn.CheckInProp;

@Entity
public class CheckInEntity {
	@Id String key; //programId_memberId
	@Index long programId;
	@Index long memberId;
	
	List<CheckInRecord> checkInRecords = new ArrayList<>();
	
	public CheckInProp toProp() {
		CheckInProp checkInProp = new CheckInProp();
		checkInProp.key = key;
		checkInProp.programId = programId;
		checkInProp.memberId = memberId;
		checkInProp.checkInRecords = checkInRecords;
		
		return checkInProp;
	}	
}
